import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/screen',
    name: 'view',
    component: () => import('@/views/Screen.vue'),
  },
  {
    path: '/hello',
    name: 'hello',
    component: () => import('@/views/hello.vue'),
  },
  {
    path: '*',
    redirect: '/screen'
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
